package com.edu.dgut.entity;

import lombok.Data;

import javax.persistence.*;

//订单和商品中间表
@Data
@Table(name = "ordertable_goods")
@Entity
public class ordertable_goods {

    @Id
    @Column(name = "id")
    private String id;

    private int amount;

    @OneToOne(cascade = CascadeType.REFRESH)
    private goodsEntity goods;

}
